import * as aa from 'react-keepalive-router/lib'
import Home from '../view/Home';
import Details from '../view/Details';

import React, { Component } from 'react';
import { Routes, Route } from 'react-router-dom';

export class MyRouter extends Component {
  render() {
	  console.log(aa);
	return (
		<Routes>
			{/* <KeepliveRouterSwitch>
				<KeepliveRoute> */}
					<Route path='/' element={<Home />}></Route>
					<Route path="/details" element={<Details />} />
				{/* </KeepliveRoute>
			</KeepliveRouterSwitch> */}
		</Routes>
	)
  }
}

export default MyRouter;